<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .clock-wrapper{
            width: 500px;
            height: 500px;
            background-image: url(./img/bg.png);
            margin: 0 auto;
            position: relative;
            background-size: cover;
        }
        .clock-wrapper > div{
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            margin:auto auto;
        }
        .s-wrapper{
            
            height: 400px;
            width: 2px;
            position: absolute;
            
            
            animation: second 60s infinite steps(60);
        }
        .s{
            height:50%;
            width: 2px;
            background-color: red;
        }
        @keyframes second{
            from{
                transform: rotateZ(0);
            }
            to{
                transform: rotateZ(360deg);
            }
        }
        .m-wrapper{
            /* background-color: red; */
            height: 350px;
            width: 4px;
            position: absolute;
          
            /* transform: translateX(-200%); */
            animation: min 3600s infinite steps(60);
            z-index: 2;
        
        }
        .m-wrapper .m{
            height: 50%;
            width: 4px;
            background-color: black;
            border-radius: 50%;
            
        }
        @keyframes min{
            from{
                transform: rotateZ(0);
            }
            to{
                transform: rotateZ(360deg);
            }
        }
        .h-wrapper{
            /* background-color: red; */
            height: 300px;
            width: 12px;
            position: absolute;
        
            /* transform: translateX(-200%); */
            animation: hour 43200s infinite linear;
        
        }
        .h-wrapper .h{
            height: 50%;           width: 12px;
            background-color: yellow;
            border-radius: 50%;
        }
        @keyframes hour{
            from{
                transform: rotateZ(0);
            }
            to{
                transform: rotateZ(360deg);
            }
        }
    </style>
</head>
<body>
    <!-- 创建容器让容器转 -->
    <!-- <div class="wrapper"> 
        <div class="s-zhen"></div>
    </div> -->
    <div class="clock-wrapper">
        <div class="s-wrapper">
            <div class="s"></div>
        </div>
        <div class="m-wrapper">
            <div class="m"></div>
        </div>
        <div class="h-wrapper">
            <div class="h"></div>
        </div>

    </div>
    
</body>
</html>